package main;

import javax.swing.*;
import javax.swing.border.EmptyBorder;
import java.awt.*;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
public class SuRegiste extends JFrame implements MouseMotionListener,MouseListener{
    private final JPanel contentPane;
    Button Affirm = new Button();//
    Button button_1 = new Button();//         ߽
    public SuRegiste() {

        setTitle("成功注册");
        setBackground(Color.white);
        setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        setBounds(70,70, 700, 500);
        contentPane = new JPanel();
        contentPane.setBackground(Color.white);
        contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
        setContentPane(contentPane);
        contentPane.setLayout(null);



        Label label_3 = new Label("注册成功，请重新登录");
        label_3.setAlignment(Label.CENTER);
        label_3.setBackground(Color.white);
        label_3.setFont(new Font("Dubai", Font.PLAIN, 30));
        label_3.setBounds(113, 107, 500, 100);
        contentPane.add(label_3);

        Affirm.setLabel("确认");
        Affirm.setFont(new Font("Dialog", Font.PLAIN, 20));
        Affirm.setBackground(Color.white);
        Affirm.setBounds(40, 233, 106, 25);
        contentPane.add(Affirm);
        Affirm.addMouseListener(this);
        this.addMouseMotionListener(this);

    }

    @Override
    public void mouseClicked(MouseEvent e) {
        if (e.getSource()== Affirm){//
            setVisible(false);

            CusLog frame1 = new CusLog();
            frame1.setVisible(true);//BackCar
        }


    }

    @Override
    public void mouseEntered(MouseEvent arg0) {
        // TODO Auto-generated method stub

    }

    @Override
    public void mouseExited(MouseEvent arg0) {
        // TODO Auto-generated method stub

    }

    @Override
    public void mousePressed(MouseEvent arg0) {
        // TODO Auto-generated method stub

    }

    @Override
    public void mouseReleased(MouseEvent arg0) {
        // TODO Auto-generated method stub

    }

    @Override
    public void mouseDragged(MouseEvent arg0) {
        // TODO Auto-generated method stub

    }

    @Override
    public void mouseMoved(MouseEvent arg0) {
        // TODO Auto-generated method stub

    }
}
